import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadPoolTest {
    public static void main(String[] args) {
        ExecutorService executorService = Executors.newCachedThreadPool();
        // submit有返回值，execute没有返回值
        executorService.submit(() -> System.out.println("我是线程池中的线程submit"));

        executorService.execute(() -> System.out.println("我是线程池的线程execute"));

    }
}
